package com.mkh.st.admin.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "密码修改保存对象")
public class UserPasswordDTO implements Serializable {

	@ApiModelProperty(value="用户id")
	private Long userId;

	@ApiModelProperty(value="1用户自己修改，0后台重置密码")
	@NotNull(message = "类型不能为空!")
	private Integer type;

	@ApiModelProperty(value="旧密码")
	private String oldPassword="";

	@ApiModelProperty(value="新密码")
	@NotBlank(message = "新密码不能为空!")
	private String newPassword;

	@ApiModelProperty(value="确认密码")
	@NotBlank(message = "确认密码不能为空!")
	private String comfirmPassword;

}
